package com.ym.domain.model;

import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnComment;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Table;

@Data
@Table
@TableComment("注册商费用表")
@EqualsAndHashCode(callSuper = true)
public class DmRegisterFee extends BaseModel {

    //域名类型: 0-英文，1-中文
    public static final short DOMAIN_TYPE_ENGLISH = 0;
    public static final short DOMAIN_TYPE_CHINESE = 1;

    //费用类型: 1-注册, 2-续费, 3-转入, 4-赎回
    public static final short FEE_TYPE_REGISTER = 1;
    public static final short FEE_TYPE_RENEW = 2;
    public static final short FEE_TYPE_TRANSFER = 3;
    public static final short FEE_TYPE_REDEEM = 4;

    @Column
    @ColumnComment("注册商ID")
    private Long registrarId;

    @Column(length = 50)
    @ColumnComment("域名后缀")
    private String suffix;

    @Column
    @ColumnComment("域名类型。0-英文或不区分，1-中文")
    private Short domainType;

    @Column
    @ColumnComment("费用类型。1-注册, 2-续费, 3-转入, 4-赎回")
    private Short feeType;

    @Column
    @ColumnComment("费用年限")
    private Short feeYears;

    @Column
    @ColumnComment("费用金额")
    private Integer feeAmount;

}
